{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <form class="form-horizontal" method="post">
            <div class="col-sm-12">
                <div class="tabs-container">

                    <div class="tab-content">
                        <div class="ibox-content">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">类别：</label>
                        <div class="col-sm-9">
                            <select class="form-control" name="cid" onchange="chan(this);">
                                {volist name="type" id="v"}
                                {eq name='v.id' value='$name.cid'}
                                <option value="{$v.id}" selected="selected">{$v.name}</option>
                                {else /}
                                <option value="{$v.id}">{$v.name}</option>
                                {/eq}
                                {/volist}
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">名称：</label>
                        <div class="col-sm-9">
                            <input name="name" type="text" class="form-control" value="{present name="name"}{$name.name}{/present}">
                        </div>
                    </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">音频：</label>
                                <div class="col-sm-9">
                                    <div class="input-group">

                                        
                                        <audio src="{present name='name'}{notempty name='$name.audio'}{:strpos($name.audio, 'http')===false?'__ROOT__':''}{$name.audio}{/notempty}{/present}" id="audio" controls="controls">Your browser does not support the audio element.</audio>
                                        <input name="audio" type="hidden"  id="audioval" class="form-control" value="{present name='name'}{$name.audio}{/present}">
                                        <span class="input-group-btn">
                                            <button type="button" class="btn btn-primary" id="tubiao3">上传</button>
                                        </span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
{include file="public/footer" /}
{load href="__PLUGINS__iCheck/icheck.min.js"}
{load href="__PLUGINS__iCheck/custom.css"}
<script type="text/javascript">
    $(document).ready(function(){
        $(".i-checks").iCheck({
            checkboxClass: "icheckbox_square-green",
            radioClass: "iradio_square-green",
        })
    });
</script>
{include file="public/bottom" /}
